package scene01_Home;

import android.graphics.Bitmap;
import android.graphics.Paint;
import android.widget.Toast;
import baseClass.Global;
import baseClass.Sprite_Touch;
import com.nPones.MainActivity;
import mainSrc.GlobalSaveData;
import mainSrc.MainDirector;
import pck_ImageLoader.ImageLoadManager;

public class Sprite_ButtonEditorNext
  extends Sprite_Touch
{
  int iAnimaPose00Interval;
  int iAnimaPose00Loop;
  int iAnimaPose01Interval;
  int iAnimaPose01Loop;
  int iAnimaPose02Interval;
  int iAnimaPose02Loop;
  int iAnimaPose03Interval;
  int iAnimaPose03Loop;
  int iAnimaPose04Interval;
  int iAnimaPose04Loop;
  int iAnimaPose05Interval;
  int iAnimaPose05Loop;
  int iAnimaPoseNumber;
  public int iCurrentLevel;
  public int iLastLevel;
  int iWalkInterval;
  int iclimbingInterval;
  int ihangclimbingInterval;
  
  public Sprite_ButtonEditorNext(int paramInt1, int paramInt2, int paramInt3, float paramFloat1, float paramFloat2)
  {
    super(paramInt1, paramInt2, paramInt3, paramFloat1, paramFloat2);
    SetAllVariableFree();
  }
  
  public void CreateCharacterStatusFile()
  {
    new ImageLoadManager().CreateCharacterStatusFileInEditor(this.iWalkInterval, this.iclimbingInterval, this.ihangclimbingInterval, this.iAnimaPoseNumber, this.iAnimaPose00Interval, this.iAnimaPose00Loop, this.iAnimaPose01Interval, this.iAnimaPose01Loop, this.iAnimaPose02Interval, this.iAnimaPose02Loop, this.iAnimaPose03Interval, this.iAnimaPose03Loop, this.iAnimaPose04Interval, this.iAnimaPose04Loop, this.iAnimaPose05Interval, this.iAnimaPose05Loop);
  }
  
  public void SetAllVariableFree()
  {
    this.iCurrentLevel = 0;
    this.iLastLevel = 4;
    this.iWalkInterval = 10;
    this.iclimbingInterval = 10;
    this.ihangclimbingInterval = 10;
    this.iAnimaPoseNumber = 1;
    this.iAnimaPose00Interval = 10;
    this.iAnimaPose00Loop = 1;
    this.iAnimaPose01Interval = 10;
    this.iAnimaPose01Loop = 1;
    this.iAnimaPose02Interval = 10;
    this.iAnimaPose02Loop = 1;
    this.iAnimaPose03Interval = 10;
    this.iAnimaPose03Loop = 1;
    this.iAnimaPose04Interval = 10;
    this.iAnimaPose04Loop = 1;
    this.iAnimaPose05Interval = 10;
    this.iAnimaPose05Loop = 1;
  }
  
  public boolean Touch_Check(float paramFloat1, float paramFloat2)
  {
    boolean bool = false;
    if (this.bit_img != null)
    {
      if ((paramFloat1 >= this.position_x * Global.GetInstance().dnst_w - this.bit_img.getWidth() * this.position_ax * 3.0F) && (paramFloat2 >= this.position_y * Global.GetInstance().dnst_h - this.bit_img.getHeight() * this.position_ay * 2.0F) && (paramFloat1 <= this.position_x * Global.GetInstance().dnst_w - this.bit_img.getWidth() * (this.position_ax - 1.0F) * 3.0F) && (paramFloat2 <= this.position_y * Global.GetInstance().dnst_h - this.bit_img.getHeight() * (this.position_ay - 1.0F) * 2.0F)) {
        bool = true;
      }
    }
    else {
      return bool;
    }
    this.DownAndUp = false;
    Touch_RangeOut();
    return false;
  }
  
  public void Touch_Down(float paramFloat1, float paramFloat2, MainDirector paramMainDirector)
  {
    this.paint.setAlpha(100);
  }
  
  public void Touch_DownAndUp(float paramFloat1, float paramFloat2, MainDirector paramMainDirector)
  {
    this.paint.setAlpha(255);
    paramMainDirector.m_Scene01.m_Layer04.bTxtChanger = false;
    switch (this.iCurrentLevel)
    {
    }
    while (this.iCurrentLevel < this.iLastLevel)
    {
      this.iCurrentLevel += 1;
      return;
      this.iAnimaPose00Interval = paramMainDirector.m_Scene01.m_Layer04.iAnswer1;
      this.iAnimaPose00Loop = paramMainDirector.m_Scene01.m_Layer04.iAnswer2;
      continue;
      this.iWalkInterval = paramMainDirector.m_Scene01.m_Layer04.iAnswer1;
      continue;
      this.iclimbingInterval = paramMainDirector.m_Scene01.m_Layer04.iAnswer1;
      continue;
      this.ihangclimbingInterval = paramMainDirector.m_Scene01.m_Layer04.iAnswer1;
      continue;
      this.iAnimaPoseNumber = paramMainDirector.m_Scene01.m_Layer04.iAnswer1;
      this.iLastLevel += this.iAnimaPoseNumber;
      this.iAnimaPoseNumber += 1;
      continue;
      this.iAnimaPose01Interval = paramMainDirector.m_Scene01.m_Layer04.iAnswer1;
      this.iAnimaPose01Loop = paramMainDirector.m_Scene01.m_Layer04.iAnswer2;
      continue;
      this.iAnimaPose02Interval = paramMainDirector.m_Scene01.m_Layer04.iAnswer1;
      this.iAnimaPose02Loop = paramMainDirector.m_Scene01.m_Layer04.iAnswer2;
      continue;
      this.iAnimaPose03Interval = paramMainDirector.m_Scene01.m_Layer04.iAnswer1;
      this.iAnimaPose03Loop = paramMainDirector.m_Scene01.m_Layer04.iAnswer2;
      continue;
      this.iAnimaPose04Interval = paramMainDirector.m_Scene01.m_Layer04.iAnswer1;
      this.iAnimaPose04Loop = paramMainDirector.m_Scene01.m_Layer04.iAnswer2;
      continue;
      this.iAnimaPose05Interval = paramMainDirector.m_Scene01.m_Layer04.iAnswer1;
      this.iAnimaPose05Loop = paramMainDirector.m_Scene01.m_Layer04.iAnswer2;
    }
    CreateCharacterStatusFile();
    if (GlobalSaveData.GetInstance().iLanguage == 0)
    {
      Toast.makeText(Global.GetInstance().m_activity.getApplicationContext(), "CharacterStaus.dat was created in editor folder.", 0).show();
      Toast.makeText(Global.GetInstance().m_activity.getApplicationContext(), "You can apply this, if you replace file to where the images are.", 0).show();
    }
    for (;;)
    {
      SetAllVariableFree();
      paramMainDirector.m_Scene01.m_Layer01.visible = false;
      paramMainDirector.m_Scene01.m_Layer02.visible = false;
      paramMainDirector.m_Scene01.m_Layer03.visible = false;
      paramMainDirector.m_Scene01.m_Layer04.visible = false;
      paramMainDirector.m_Scene01.m_Layer03.visible = true;
      return;
      Toast.makeText(Global.GetInstance().m_activity.getApplicationContext(), "CharacterStaus.dat 파일이 editor 폴더에 만들어졌습니다.", 0).show();
      Toast.makeText(Global.GetInstance().m_activity.getApplicationContext(), "이것은 이미지가 들어있는 폴더에 넣으시면 적용하실 수 있습니다.", 0).show();
    }
  }
  
  public void Touch_RangeOut()
  {
    this.paint.setAlpha(255);
  }
}


/* Location:           D:\Tool\AndroidKiller_v1.3.1\projects\petdesigner\ProjectSrc\classes-dex2jar.jar
 * Qualified Name:     scene01_Home.Sprite_ButtonEditorNext
 * JD-Core Version:    0.7.0.1
 */